package org.flower.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 商品详情实体类
 * @author Aizen
 */
public class CommodityDetails {
    /**
     * 编号
     */
    private int id;

    public List<String> getImages() {
        return images;
    }

    /**
     * 商品详情类别对象
     */
    private CommodityClass comClass;

    public CommodityClass getComClass() {
        return comClass;
    }

    public void setComClass(CommodityClass comClass) {
        this.comClass = comClass;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    /**
     * 商品名称
     */
    private String comName;
    /**
     * 商品描述
     */
    private String content;
    /**
     * 商品描述2
     */
    private String content2;
    /**
     * 已售数量
     */
    private int outNum;
    /**
     * 售价
     */
    private double outPrice;
    /**
     * 市场价
     */
    private double marketPrice;
    /**
     * 材料
     */
    private String materialScience;
    /**
     * 包装
     */
    private String packing;
    /**
     * 配送说明
     */
    private String distribution;
    /**
     * 商品图片
     */
    private String comImage;
    /**
     * 详情图片
     */
    private String detailsImage;
    /**
     * 商品展示编号
     */
    private int comShowId;
    /**
     * 商品类别编号
     */
    private int classId;

    private String className;

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    /**
     * 商品库存
     */
    private int stockd;
    /**
     * 商品添加时间
     */
    private Date insertDate;

    /**
     * 商品图片集合
     */
    private List<String> images = new ArrayList<>();

    /**
     * 商品详情图片集合
     */
    private List<String> images2 = new ArrayList<>();

    public List<String> getImages2() {
        return images2;
    }

    public void setImages2(List<String> images2) {
        this.images2 = images2;
    }

    /**
     * 商品集合
     * @return
     */
    private List<CommodityDetails> commodityDetailsList;

    public List<CommodityDetails> getCommodityDetailsList() {
        return commodityDetailsList;
    }

    public void setCommodityDetailsList(List<CommodityDetails> commodityDetailsList) {
        this.commodityDetailsList = commodityDetailsList;
    }

    public int getId() {
        return id;
    }

    public String getComName() {
        return comName;
    }

    public String getContent() {
        return content;
    }

    public String getContent2() {
        return content2;
    }

    public int getOutNum() {
        return outNum;
    }

    public double getOutPrice() {
        return outPrice;
    }

    public double getMarketPrice() {
        return marketPrice;
    }

    public String getMaterialScience() {
        return materialScience;
    }

    public String getPacking() {
        return packing;
    }

    public String getDistribution() {
        return distribution;
    }

    public String getComImage() {
        return comImage;
    }

    public String getDetailsImage() {
        return detailsImage;
    }

    public int getComShowId() {
        return comShowId;
    }

    public int getClassId() {
        return classId;
    }

    public int getStockd() {
        return stockd;
    }

    public Date getInsertDate() {
        return insertDate;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setContent2(String content2) {
        this.content2 = content2;
    }

    public void setOutNum(int outNum) {
        this.outNum = outNum;
    }

    public void setOutPrice(double outPrice) {
        this.outPrice = outPrice;
    }

    public void setMarketPrice(double marketPrice) {
        this.marketPrice = marketPrice;
    }

    public void setMaterialScience(String materialScience) {
        this.materialScience = materialScience;
    }

    public void setPacking(String packing) {
        this.packing = packing;
    }

    public void setDistribution(String distribution) {
        this.distribution = distribution;
    }

    public void setComImage(String comImage) {
        this.comImage = comImage;
    }

    public void setDetailsImage(String detailsImage) {
        this.detailsImage = detailsImage;
    }

    public void setComShowId(int comShowId) {
        this.comShowId = comShowId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public void setStockd(int stockd) {
        this.stockd = stockd;
    }

    public void setInsertDate(Date insertDate) {
        this.insertDate = insertDate;
    }

    public CommodityDetails(int id, String comName, String content, int outNum, double outPrice, double marketPrice, String materialScience, String packing, String distribution, String comImage, String detailsImage, int comShowId, int classId, int stockd, Date insertDate) {
        this.id = id;
        this.comName = comName;
        this.content = content;
        this.content2 = content2;
        this.outNum = outNum;
        this.outPrice = outPrice;
        this.marketPrice = marketPrice;
        this.materialScience = materialScience;
        this.packing = packing;
        this.distribution = distribution;
        this.comImage = comImage;
        this.detailsImage = detailsImage;
        this.comShowId = comShowId;
        this.classId = classId;
        this.stockd = stockd;
        this.insertDate = insertDate;
    }

    public CommodityDetails() { }

    @Override
    public String toString() {
        return "CommodityDetails{" +
                "id=" + id +
                ", comName='" + comName + '\'' +
                ", content='" + content + '\'' +
                ", content2='" + content2 + '\'' +
                ", outNum=" + outNum +
                ", outPrice=" + outPrice +
                ", marketPrice=" + marketPrice +
                ", materialScience='" + materialScience + '\'' +
                ", packing='" + packing + '\'' +
                ", distribution='" + distribution + '\'' +
                ", comImage='" + comImage + '\'' +
                ", detailsImage='" + detailsImage + '\'' +
                ", comShowId=" + comShowId +
                ", classId=" + classId +
                ", stockd=" + stockd +
                ", insertDate=" + insertDate +
                '}';
    }

}
